package cn.aitrox.ry.app.web.service.impl;

import cn.aitrox.ry.app.web.service.UserService;
import cn.aitrox.ry.common.service.BaseService;
import cn.aitrox.ry.common.service.api.dto.User;
import cn.aitrox.ry.service.user.dto.in.UserListInDto;
import cn.aitrox.ry.service.user.feign.UserFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends BaseService implements UserService {

    @Autowired
    @Lazy
    private UserFeign userFeign;


    @Override
    public List<User> list(List<Integer> userIds) {
        return userFeign.list(new UserListInDto(userIds));
    }
}
